﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

using transportsystem.DTO;
using transportsystem.DAO;

namespace transportsystem.BUS
{
    public class HangBUS
    {
        public static DataTable getHangByMaDatVe(int maDatVe)
        {
            return HangDAO.getHangByMaDatVe(maDatVe);
        }
        public static DataTable layDanhSachHangTheoMaKhoHang(int ma)
        {
            return HangDAO.layDanhSachHangTheoMaKhoHang(ma);
        }
        public static bool capNhatHang(Hang hang)
        {
            return HangDAO.capNhatHang(hang);
        }
        public static bool xoaHang(Hang h)
        {
            return HangDAO.xoaHang(h);
        }
        public static DataTable timKiemHangTheoTen(string ten)
        {
            return HangDAO.timKiemHangTheoTen(ten);
        }
    }
}
